package com.honeyms.project.im.email.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.honeyms.framework.web.controller.BaseController;
import com.honeyms.framework.web.domain.AjaxResult;
import com.honeyms.project.im.email.service.EmailService;

@Controller
public class EmailController extends BaseController{

	@Autowired
	private EmailService emailService;
	
	@GetMapping("/sendEmail")
	@ResponseBody
	public AjaxResult sendMail(String addressee,String theme,String text) {
		emailService.sendemail("123456@qq.com", "honeyms测试");
		return success();
	}
}
